package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.Permission;

import java.util.List;
import java.util.Set;

public interface PermissionDao {
    public Set<Permission> findByRoleId(Integer roleId);


    Page<Permission> findAllPermission(String queryPageBean);

    void addPermission(Permission permission);

    Permission findById(Integer id);

    void editPermission(Permission permission);

    Integer findAssociation(Integer id);

    void deleteById(Integer id);

    List<Permission> findAll();
}
